package Builder_Pattern;

/**
 * 
 */
public class ModeController {

    /**
     * Default constructor
     */
    public ModeController() {
    }

    /**
     * @param mb
     */
    public MediaPlayer construct(MediaBuilder mb) {
        // TODO implement here
        MediaPlayer mediaPlayer;
        mb.buildMenu();
        mb.buildPlayList();
        mb.buildMainwindow();
        mb.buildControlBar();
        mb.buildFavoriteList();
        mediaPlayer = mb.createPlayer();
        return mediaPlayer;
    }

}